<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<style>
			.box {
				/* height: 300px; */
				overflow: auto;
				background-color: #f00;
				/* position: relative; */
			}
			.item {
				width: 200px;
				height: 200px;
				/* position: absolute; */
			}
			.item1 {
				background-color: #0f0;
				float: left;
			}
			.item2 {
				background-color: #00f;
				float: right;
			}
		</style>
	</head>
	<body>
		<div class="box">
			<div class="item item1"></div>
			<div class="item item2"></div>
		</div>
	</body>
</html>
